﻿using Exam.infrastructure.Attr;
using Exam.infrastructure.Dto.Request.login;
using Exam.infrastructure.Dto.Response;
using Exam.infrastructure.EFCore;
namespace Exam.Service.Interface
{

    [Provider_]
    public interface I_Login_Service
    {


         /// <summary>
        /// 获取登录历史
        /// </summary>
        /// <returns></returns>
        Api_Result Get_Log_History(int page, int limit, string uid);
        /// <summary>
        /// 通过code来获取用户信息
        /// </summary>
        /// <param name="code"></param>
        /// <param name="ip"></param>
        /// <returns></returns>
        SysUsers Check_login(string code, string ip);

        /// <summary> 
             /// 用户登录
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        Api_Result Logins(Login_Request_Dto dto);

      
       
        /// <summary>
        /// 重置用户密码
        /// </summary>
        /// <returns></returns>
        Api_Result Reset_Password();
    }
}
